<{if $error_info}>
<div class="error-info">
	<{$error_info}>
</div>
<{/if}>
<form class="login-form" action="<{$callback}>" method="post" name="basicloginform">
	<ul class="login-input">
		<li><label class="uname"></label><input class="inputstyle-out inputstyle-out-name" autofocus type="text" required="true" name="uname" id="uname" value=""/></li>
		<li>
		<label class="password"></label><input class="inputstyle-out inputstyle-out-pw" type="password" name="password" id="password" value=""/>
		<{if $type=="member"}><a href="<{link app='b2c' ctl='site_passport' act='lost'}>"><{t}>忘记密码<{/t}></a><{/if}>
		</li>
</ul>

<ul>
		<li class="colspan">
			   <button id="btn-login" type="submit" class="btn-login btn common-btn">
				<span>
					<span id="btn-login-inner"><{t}>登 录<{/t}></span>
				</span>
			  </button>
		</li>
	</ul>
</form>
<script>

(function(){
var blf = document.basicloginform;
var submitHandle = function(e){
	var str ="<{t}>登录中..<{/t}>";
	var bl =document.getElementById('btn-login');
	bl.setAttribute('type','button');
	var bli = document.getElementById('btn-login-inner');
	bli[bli.innerText?'innerText':'textContent']=str;
};

if(blf.addEventListener){
	blf.addEventListener('submit',submitHandle,false);
}else{
	blf.attachEvent('onsubmit',submitHandle);
}

})();
</script>
